package com.zg.common.core.dao.scf.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zg.common.core.dao.BaseEntity;
import com.zg.common.core.dao.ConditionType;
import com.zg.common.core.dao.QueryCondition;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-19
 */

@Data
@NoArgsConstructor
@TableName("SCF_PORT_PLAN")
public class PortPlan extends BaseEntity {

    @ExcelProperty("用户名称")
    @QueryCondition(type = ConditionType.LIKE)
    private String userName;          // 用户（企业名称）

    @ExcelProperty("矿点名称")
    private String minePoint;       // 矿厂

    @ExcelProperty("煤种")
    private String coalType;          // 煤种

    @ExcelProperty("计划执行日期")
    private Date planDate;         // 计划日期
    /**
     * 吨数
     */
    @ExcelProperty("计划吨数")
    private BigDecimal quantity;

    /**
     * 下达日期
     */
    @ExcelProperty("计划下达日期")
    private Date issueDate;

    @TableField(exist = false)
    @QueryCondition( type =ConditionType.BETWEEN, ignoreEmpty = false,filed = "planDate")
    private Date[] planDates;

    /**
     * 计划号
     */
    @ExcelProperty("计划号")
    private String planNo;

}
